home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 18 / fpc103.zip / EDITSET.SEQ < prev    next >
Text File  |  1988-04-08  |  14KB  |  306 lines

  1. \ EDITSET.SEQ   Set the editor key assignments          by Tom Zimmer
  2.  
  3. comment:
  4.  
  5.   The file EDITSET.SEQ contains the command key definitions for the
  6. SED editor. You can change these assignments, to redefine how the
  7. editor works.
  8.  
  9.   See the end of EDITSET.SEQ for a description of the functions
  10. available in the editor.
  11.  
  12. comment;
  13.  
  14. only forth also editor also definitions
  15.  
  16. : ctlset        ( n1 | function --- )
  17.                 ' swap                  \ get address of functon
  18.                 0 max 31 min 2*         \ clip n1 to valid CTRL char
  19.                 2+                      \ step past EXEC:
  20.                 ['] s^tbl >body @       \ relative segment of S^TBL
  21.                 xseg @ + swap !L ;      \ convert to absolute segment & store
  22.  
  23. : fnset         ( n1 | function --- )   \ same comments as ABOVE
  24.                 ' swap
  25.                 128 max 255 min 128 - 2*
  26.                 2+
  27.                 ['] sfuntbl >body @     \ relative segment of SFUNTBL
  28.                 xseg @ + swap !L ;
  29.  
  30.         \ control key function table
  31.  
  32. control @ ctlset kerr           \ Null, can NOT be generated.
  33. control A ctlset lwrd           \ Control A
  34. control B ctlset kerr           \ Control B     ** Not used **
  35. control C ctlset pdn            \ Control C
  36. control D ctlset rchr           \ Control D
  37. control E ctlset upln           \ Control E
  38. control F ctlset rwrd           \ Control F
  39. control G ctlset fdel           \ Control G
  40. control H ctlset bdel           \ Control H     Back Space
  41. control I ctlset stab           \ Control I     TAB
  42. control J ctlset kerr           \ Control J     ** Not used **
  43. control K ctlset kerr           \ Control K     ** Not used **
  44. control L ctlset lmset          \ Control L
  45. control M ctlset nln            \ Control M
  46. control N ctlset spltln         \ Control N
  47. control O ctlset kerr           \ Control O     ** Not used **
  48. control P ctlset kerr           \ Control P     ** Not used **
  49. control Q ctlset kerr           \ Control Q     ** Not used **
  50. control R ctlset pup            \ Control R
  51. control S ctlset lchr           \ Control S
  52. control T ctlset wdel           \ Control T
  53. control U ctlset updt           \ Control U
  54. control V ctlset itgl           \ Control V
  55. control W ctlset sclup          \ Control W
  56. control X ctlset dnln           \ Control X
  57. control Y ctlset ldel           \ Control Y
  58. control Z ctlset scldn          \ Control Z
  59. control [ ctlset sesc           \ ESCape
  60. control \ ctlset kerr           \ Control \     ** Not used **
  61. control ] ctlset kerr           \ Control ]     ** Not used **
  62. control ^ ctlset kerr           \ Control ^     ** Not used **
  63. control _ ctlset kerr           \ Control _     ** Not used **
  64.  
  65.  
  66. 143 fnset sbtab                 \ Back TAB
  67. 158 fnset kerr                  \ Alt-A         ** Not used **
  68. 176 fnset kerr                  \ Alt-B         ** Not used **
  69. 174 fnset exportx               \ Alt-C
  70. 160 fnset kerr                  \ Alt-D         ** Not used **
  71. 146 fnset kerr                  \ Alt-E         ** Not used **
  72. 161 fnset kerr                  \ Alt-F         ** Not used **
  73. 162 fnset kerr                  \ Alt-G         ** Not used **
  74. 163 fnset kerr                  \ Alt-H         ** Not used **
  75. 151 fnset kerr                  \ Alt-I         ** Not used **
  76. 164 fnset kerr                  \ Alt-J         ** Not used **
  77. 165 fnset tabxp                 \ Alt-K
  78. 166 fnset lmset                 \ Alt-L
  79. 178 fnset kerr                  \ Alt-M         ** Not used **
  80. 177 fnset joinln                \ Alt-N
  81. 152 fnset alt-O                 \ Alt-O
  82. 153 fnset pmenux                \ Alt-P
  83. 144 fnset shom                  \ Alt-Q
  84. 147 fnset kerr                  \ Alt-R         ** Not used **
  85. 159 fnset kerr                  \ Alt-S         ** Not used **
  86. 148 fnset tabset                \ Alt-T
  87. 150 fnset wudel                 \ Alt-U
  88. 175 fnset importx               \ Alt-V
  89. 145 fnset wr->fl                \ Alt-W
  90. 173 fnset excutx                \ Alt-X
  91. 149 fnset lundel                \ Alt-Y
  92. 172 fnset send                  \ Alt-Z
  93.  
  94. 248 fnset kerr                  \ Alt 1         ** Not used **
  95. 249 fnset kerr                  \ Alt 2         ** Not used **
  96. 250 fnset kerr                  \ Alt 3         ** Not used **
  97. 251 fnset kerr                  \ Alt 4         ** Not used **
  98. 252 fnset kerr                  \ Alt 5         ** Not used **
  99. 253 fnset kerr                  \ Alt 6         ** Not used **
  100. 254 fnset kerr                  \ Alt 7         ** Not used **
  101. 255 fnset kerr                  \ Alt 8         ** Not used **
  102. 128 fnset kerr                  \ Alt-9         ** Not used **
  103. 129 fnset kerr                  \ Alt-0         ** Not used **
  104.  
  105. 130 fnset kerr                  \ Alt -         ** Not used **
  106. 131 fnset kerr                  \ Alt =         ** Not used **
  107.  
  108. 199 fnset shoml                 \ HOME  key
  109. 207 fnset sendl                 \ END   key
  110.  
  111. 200 fnset upln                  \ Up    Arrow
  112. 208 fnset dnln                  \ Down  Arrow
  113. 203 fnset lchr                  \ Left  Arrow
  114. 205 fnset rchr                  \ Right Arrow
  115.  
  116. 201 fnset pup                   \ PgUp
  117. 209 fnset pdn                   \ PgDn
  118.  
  119. 210 fnset itgl                  \ Insert key
  120. 211 fnset fdel                  \ Delete key
  121.  
  122. 243 fnset lwrd                  \ Control Left Arrow
  123. 244 fnset rwrd                  \ Control Right Arrow
  124. 247 fnset shom                  \ Control HOME
  125. 245 fnset send                  \ Control END
  126. 246 fnset kerr                  \ Control PgDn  ** Not used **
  127. 132 fnset kerr                  \ Control PgUp  ** Not used **
  128.  
  129. 187 fnset shelp                 \ F1
  130. 187 =: helpkey                  \ Assign F1 as the HELPKEY value.
  131.                                 \ If you set another key as HELP, then
  132.                                 \ change the 187 to the new value of help.
  133.  
  134. 188 fnset tscrn                 \ F2
  135. 189 fnset smrk                  \ F3
  136. 190 fnset bscrn                 \ F4
  137. 191 fnset sgetl                 \ F5
  138. 192 fnset sloon                 \ F6
  139. 193 fnset kerr                  \ F7            ** Not used **
  140. 194 fnset srepn                 \ F8
  141. 195 fnset kerr                  \ F9            ** Not used **
  142. 196 fnset ^cc                   \ F10           ** Not used **
  143.  
  144. 212 fnset kerr                  \ Shift F1      ** Not used **
  145. 213 fnset kerr                  \ Shift F2      ** Not used **
  146. 214 fnset kerr                  \ Shift F3      ** Not used **
  147. 215 fnset kerr                  \ Shift F4      ** Not used **
  148. 216 fnset kerr                  \ Shift F5      ** Not used **
  149. 217 fnset sloob                 \ Shift F6
  150. 218 fnset kerr                  \ Shift F7      ** Not used **
  151. 219 fnset repall                \ Shift F8
  152. 220 fnset kerr                  \ Shift F9      ** Not used **
  153. 221 fnset kerr                  \ Shift F10     ** Not used **
  154.  
  155. 222 fnset kerr                  \ Control F1    ** Not used **
  156. 223 fnset kerr                  \ Control F2    ** Not used **
  157. 224 fnset kerr                  \ Control F3    ** Not used **
  158. 225 fnset kerr                  \ Control F4    ** Not used **
  159. 226 fnset kerr                  \ Control F5    ** Not used **
  160. 227 fnset kerr                  \ Control F6    ** Not used **
  161. 228 fnset kerr                  \ Control F7    ** Not used **
  162. 229 fnset kerr                  \ Control F8    ** Not used **
  163. 230 fnset kerr                  \ Control F9    ** Not used **
  164. 231 fnset kerr                  \ Control F10   ** Not used **
  165.  
  166. 232 fnset kerr                  \ Alt F1        ** Not used **
  167. 233 fnset kerr                  \ Alt F2        ** Not used **
  168. 234 fnset kerr                  \ Alt F3        ** Not used **
  169. 235 fnset kerr                  \ Alt F4        ** Not used **
  170. 236 fnset kerr                  \ Alt F5        ** Not used **
  171. 237 fnset slooa                 \ Alt F6
  172. 238 fnset kerr                  \ Alt F7        ** Not used **
  173. 239 fnset srepa                 \ Alt F8
  174. 240 fnset kerr                  \ Alt F9        ** Not used **
  175. 241 fnset squt                  \ Alt F10
  176.  
  177. \ At the moment I do not know of any keys that will generate the
  178. \ following values.
  179. \                                                       Tom Zimmer
  180.  
  181. 133 fnset kerr                  \ 133           ** Not used **
  182. 134 fnset kerr                  \ 134           ** Not used **
  183. 135 fnset kerr                  \ 135           ** Not used **
  184. 136 fnset kerr                  \ 136           ** Not used **
  185. 137 fnset kerr                  \ 137           ** Not used **
  186. 138 fnset kerr                  \ 138           ** Not used **
  187. 139 fnset kerr                  \ 139           ** Not used **
  188. 140 fnset kerr                  \ 140           ** Not used **
  189. 141 fnset kerr                  \ 141           ** Not used **
  190. 142 fnset kerr                  \ 142           ** Not used **
  191. 154 fnset kerr                  \ 154           ** Not used **
  192. 155 fnset kerr                  \ 155           ** Not used **
  193. 156 fnset kerr                  \ 156           ** Not used **
  194. 157 fnset kerr                  \ 157           ** Not used **
  195. 167 fnset kerr                  \ 167           ** Not used **
  196. 168 fnset kerr                  \ 168           ** Not used **
  197. 169 fnset kerr                  \ 169           ** Not used **
  198. 170 fnset kerr                  \ 170           ** Not used **
  199. 171 fnset kerr                  \ 171           ** Not used **
  200. 179 fnset kerr                  \ 179           ** Not used **
  201. 180 fnset kerr                  \ 180           ** Not used **
  202. 181 fnset kerr                  \ 181           ** Not used **
  203. 182 fnset kerr                  \ 182           ** Not used **
  204. 183 fnset kerr                  \ 183           ** Not used **
  205. 184 fnset kerr                  \ 184           ** Not used **
  206. 185 fnset kerr                  \ 185           ** Not used **
  207. 186 fnset kerr                  \ 186           ** Not used **
  208. 197 fnset kerr                  \ 197           ** Not used **
  209. 198 fnset kerr                  \ 198           ** Not used **
  210. 202 fnset kerr                  \ 202           ** Not used **
  211. 204 fnset kerr                  \ 204           ** Not used **
  212. 206 fnset kerr                  \ 206           ** Not used **
  213. 242 fnset kerr                  \ 242           ** Not used **
  214.  
  215. only forth also definitions
  216.  
  217. \S      Don't compile the rest of this file.
  218.  
  219.  
  220.         Function Descriptions for the above key definitions
  221.  
  222. tscrn           Move to top of screen.
  223. bscrn           Move to bottom of screen.
  224. dnln            Move down a line
  225. upln            Move up   a line
  226. lchr            Move left  a character
  227. rchr            Move right a character
  228. lwrd            Move left  a word
  229. rwrd            Move right a word
  230. pdn             Move down one screen full
  231. pup             Move up   one screen full
  232. shoml           Move to the beginning of the current line.
  233. sendl           Move to the end       of the current line.
  234. shom            Move to the beginning of the file.
  235. send            Move to the end       of the file.
  236.  
  237. fdel            Delete current character under cursor
  238. bdel            Delete character before cursor
  239. wdel            Delete word forward starting at cursor
  240. ldel            Delete all of current edit line
  241. excutx          Delete all marked lines of text, MARK sets start.
  242.                   Cuts all lines to the file TEMP.SEQ
  243.                   Prompts for a filename if SHIFT is held down.
  244.  
  245. shelp           Display the first of two help screens.
  246.  
  247. pmenux          Enter print menu.
  248.  
  249. exportx         Copy the portion of the current file starting at the
  250.                   last MARK, until the cursor line to the file TEMP.SEQ.
  251.                   Prompts for a filename if Shift is held down.
  252. importx         Insert the file TEMP.SEQ at the cursor, or allow
  253.                   selection of a file if Shift is held down.
  254. sgetl           Get a line from MARK to current cursor position.
  255.  
  256. stab            Insert spaces up to next tab setting
  257. sbtab           Move back to previous tab position.
  258.  
  259. Alt-O   The following options are available under this command
  260. tabxp           Expand tabs in entire file to spaces.
  261. l>lcase         Convert the current line to lower case
  262. l>ucase         Convert the current line to uppercase
  263.  
  264. ^cc             Insert the value of any key following this command.
  265.  
  266.  
  267. joinln          Join this line and next line.
  268. spltln          Split current line at cursor into two lines
  269.  
  270. kerr            Key error, beeps
  271.  
  272. sloon           Search for name with prompt for text.
  273. slooa           Search again for same text.
  274. sloob           Search backwards for last text searched for.
  275.  
  276. srepn           Replace searched text with prompt for text.
  277. srepa           Replace again with same text.
  278. repall          Replace all occurances of found text with replace text,
  279.                   no prompting.
  280.  
  281. nln             Return, go down to next line.
  282.  
  283. sclup           Scroll the screen up,   leaving cursor on same screen line.
  284. scldn           Scroll the screen down, leaving cursor on same screen line.
  285.  
  286. lmset           Set left margin to current cursor position.
  287. lmset           Set the left margin to current cursor position
  288. tabset          Set the tab increment to multiples of the current column.
  289. smrk            Set the MARK for copy lines, or export.
  290.  
  291. updt            Save changes to disk and continue editing
  292. sesc            Terminate edit and save changes unless Shift is being held
  293.                   down, then terminate edit without saving changes.
  294. squt            Terminate the edit, and discard all changes.
  295.  
  296. itgl            Toggle between insert and overwrite mode
  297.  
  298. wudel           Undelete the most recent word deleted.
  299.                   repeatable up to 256 bytes.
  300. lundel          Undelete the last line deleted, upto 50 lines.
  301.  
  302. wr->fl          Write all of current file to a new file which will
  303.                 be prompted for.
  304.  
  305.  
  306.